﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MusicWorks.Web.Logic.Views;
using WebFormsMvp;

namespace MusicWorks.Web.Logic.Presenters
{
    public class LoginPresenter : Presenter<ILoginView>
    {
        public LoginPresenter(ILoginView view)
            : base(view)
        {
            View.Load += View_Load;
            View.Authenticate += View_Authenticate;
        }

        void View_Load(object sender, EventArgs e)
        {

        }

        void View_Authenticate(object sender, AuthenticateEventArgs e)
        {
            e.IsAuthenticated = true;
        }

        public override void ReleaseView()
        {
            View.Load -= View_Load;
        }
    }
}
